import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useReservationStore = defineStore('reservation', () => {
  const needRefresh = ref(false)

  const setNeedRefresh = (value) => {
    needRefresh.value = value
  }

  const refreshReservations = () => {
    needRefresh.value = true
  }

  return {
    needRefresh,
    setNeedRefresh,
    refreshReservations,
  }
})
